package com.hori3d.rc;

import com.hori3d.rc.bean.Printer;
import com.hori3d.rc.service.ConnectPrinterService;
 

import android.support.v4.app.Fragment;

public class BaseFragment extends Fragment {


	protected void sendCmd(String cmd)
	{
		((MainActivity)getActivity()).sendCmd(cmd);

	}
	
	protected ConnectPrinterService getService( )
	{
		return ((MainActivity)getActivity()).conPrinterService;

	}
	
	
	protected void buzz()
	{
		((MainActivity)getActivity()).sendCmd(Printer.CMD_BEEZER+5);
		
	}
	
	
	protected void buzz(int p)
	{
		((MainActivity)getActivity()).buzz(p,1);
		
	}
	
	
    
}
